package com.video.service.task;

import com.baomidou.mybatisplus.extension.service.IService;
import com.video.entity.Task;
import com.video.entity.Webcon;

import java.util.List;

public interface ITaskService extends IService<Task> {

    int insert(Task task);

    List<Task> queryTaskList(Integer taskt, String account, String solution);

    Task copyTask(String taskid);

    Task getByTaskId(String taskid);

    Task updateTaskVolume(String taskid, int volume, Integer looptype);

    Task updateTaskByTaskId(Task task);

    List<Task> queryBySolution(String solution, String account);

    List<Task> queryByAccountAndTaskType(String account, int taskt);

    int updateTaskDuration(String taskid, int duration);

    int updateTaskStatus(String taskid, int status, String startDate);

    int deleteByAccount(String account);

    int deleteTaskByUid(Integer uid, Webcon webcon);
}
